import http from '@/utils/request'
import { paramsType, dataType } from './utils/interface'

export function getList(params: paramsType): Promise<any> {
  return http.request({
    url: '/realtime/getList',
    method: 'get',
    params
  })
}

export function doEdit(data?: dataType): Promise<any> {
  return http.request({
    url: '/realtime/doEdit',
    method: 'post',
    data
  })
}

export function doDelete(data?: dataType): Promise<any> {
  return http.request({
    url: '/realtime/doDelete',
    method: 'post',
    data
  })
}
